﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptLuuChuyenTien : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CKXemCaNam")]
        private CheckBox _CKXemCaNam;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("RbGiantiep")]
        private RadioButton _RbGiantiep;
        [AccessedThroughProperty("RbTrucTiep")]
        private RadioButton _RbTrucTiep;
        [AccessedThroughProperty("updNam")]
        private NumericUpDown _updNam;
        [AccessedThroughProperty("updThang")]
        private NumericUpDown _updThang;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private ClsLuuChuyenTien objLCT;
        private string pLoai;

        [DebuggerNonUserCode]
        public Frm_RptLuuChuyenTien()
        {
            base.Load += new EventHandler(this.Frm_RptLuuChuyenTien_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void CKXemCaNam_CheckedChanged(object sender, EventArgs e)
        {
            Point point;
            if (this.CKXemCaNam.CheckState == CheckState.Checked)
            {
                this.Label13.Visible = false;
                this.updThang.Visible = false;
                point = new Point(0x12, 0x3e);
                this.CKXemCaNam.Location = point;
            }
            else
            {
                this.Label13.Visible = true;
                this.updThang.Visible = true;
                point = new Point(0x15, 0x59);
                this.CKXemCaNam.Location = point;
            }
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.RbTrucTiep.Checked)
            {
                this.PrintLuuChuyenTien();
            }
            else
            {
                this.PrintLuuChuyenTienGT();
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_RptLuuChuyenTien_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, true, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                this.updThang.Value = new decimal(DateAndTime.Today.Month);
                this.updNam.Value = new decimal(DateAndTime.Today.Year);
            }
        }

        public DataTable GetDataPrint()
        {
            DataTable table;
            string str2 = this.updNam.Value.ToString() + LVYModule.sRight("00" + this.updThang.Value.ToString(), 2);
            string str3 = str2 + "01";
            string str = str2 + LVYModule.sRight("00" + DateTime.DaysInMonth(Convert.ToInt32(this.updNam.Value), Convert.ToInt32(this.updThang.Value)).ToString(), 2);
            if (this.CKXemCaNam.CheckState == CheckState.Checked)
            {
                str3 = Conversions.ToString(this.updNam.Value) + "0101";
                str = Conversions.ToString(this.updNam.Value) + "1231";
            }
            IDataParameter[] commandParameters = new IDataParameter[4];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, str3);
                commandParameters[1] = DBHelper.createParameter("@DenNgay", DbType.Int64, ParameterDirection.Input, str);
                commandParameters[2] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, RuntimeHelpers.GetObjectValue(this.CboDonVi.SelectedValue));
                commandParameters[3] = DBHelper.createParameter("@XemNam", DbType.Double, ParameterDirection.Input, this.CKXemCaNam.Checked);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_BaoCaoLuuChuyenTienTeTrucTiep", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDataPrintGT()
        {
            DataTable table;
            try
            {
                string commandText = "  SELECT MaSo, ChiTieu, ThuyetMinh, Loai FROM GL_BaoCaoLuuChuyenTienTe  Where Loai = 'GT'";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptLuuChuyenTien));
            this.GroupBox1 = new GroupBox();
            this.CKXemCaNam = new CheckBox();
            this.Label2 = new Label();
            this.updThang = new NumericUpDown();
            this.updNam = new NumericUpDown();
            this.Label13 = new Label();
            this.Label1 = new Label();
            this.CboDonVi = new ComboBox();
            this.RbGiantiep = new RadioButton();
            this.RbTrucTiep = new RadioButton();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1.SuspendLayout();
            this.updThang.BeginInit();
            this.updNam.BeginInit();
            this.SuspendLayout();
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CKXemCaNam);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.updThang);
            this.GroupBox1.Controls.Add(this.updNam);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.CboDonVi);
            Point point = new Point(3, 7);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0x175, 0x77);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 14;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.CKXemCaNam.AutoSize = true;
            point = new Point(0x15, 0x59);
            this.CKXemCaNam.Location = point;
            this.CKXemCaNam.Name = "CKXemCaNam";
            size = new Size(0x55, 0x11);
            this.CKXemCaNam.Size = size;
            this.CKXemCaNam.TabIndex = 0x2c;
            this.CKXemCaNam.Text = "Xem cả năm";
            this.CKXemCaNam.UseVisualStyleBackColor = true;
            this.Label2.AutoSize = true;
            point = new Point(0x9a, 0x3e);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x1d, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x2b;
            this.Label2.Text = "Năm";
            point = new Point(0x53, 60);
            this.updThang.Location = point;
            decimal num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Minimum = num;
            this.updThang.Name = "updThang";
            size = new Size(0x26, 20);
            this.updThang.Size = size;
            this.updThang.TabIndex = 0x2a;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Value = num;
            point = new Point(0xbd, 60);
            this.updNam.Location = point;
            num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.updNam.Maximum = num;
            num = new decimal(new int[] { 0x76c, 0, 0, 0 });
            this.updNam.Minimum = num;
            this.updNam.Name = "updNam";
            size = new Size(50, 20);
            this.updNam.Size = size;
            this.updNam.TabIndex = 0x29;
            num = new decimal(new int[] { 0x7d7, 0, 0, 0 });
            this.updNam.Value = num;
            this.Label13.AutoSize = true;
            point = new Point(0x12, 0x3e);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x26, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 40;
            this.Label13.Text = "Th\x00e1ng";
            this.Label1.AutoSize = true;
            point = new Point(0x12, 0x1a);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "Đơn vị";
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(0x53, 0x17);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0x10f, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0;
            this.RbGiantiep.AutoSize = true;
            this.RbGiantiep.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            point = new Point(0x60, 0xbb);
            this.RbGiantiep.Location = point;
            this.RbGiantiep.Name = "RbGiantiep";
            size = new Size(0x84, 0x11);
            this.RbGiantiep.Size = size;
            this.RbGiantiep.TabIndex = 0x12;
            this.RbGiantiep.Text = "Phương ph\x00e1p gi\x00e1n tiếp";
            this.RbGiantiep.UseVisualStyleBackColor = true;
            this.RbTrucTiep.AutoSize = true;
            this.RbTrucTiep.Checked = true;
            point = new Point(-58, 0xbb);
            this.RbTrucTiep.Location = point;
            this.RbTrucTiep.Name = "RbTrucTiep";
            size = new Size(130, 0x11);
            this.RbTrucTiep.Size = size;
            this.RbTrucTiep.TabIndex = 0x11;
            this.RbTrucTiep.TabStop = true;
            this.RbTrucTiep.Text = "Phương ph\x00e1p trực tiếp";
            this.RbTrucTiep.UseVisualStyleBackColor = true;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x129, 0x84);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x10;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0xd6, 0x84);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 15;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(380, 0xa5);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.RbGiantiep);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.RbTrucTiep);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_RptLuuChuyenTien";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-0027             ";
            this.Text = "BAO CAO LUU CHUYEN TIEN";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.updThang.EndInit();
            this.updNam.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void PrintLuuChuyenTien()
        {
            string str = LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4);
            if (Form.ActiveForm != null)
            {
                Form.ActiveForm.Cursor = Cursors.WaitCursor;
            }
            DataTable dataPrint = this.GetDataPrint();
            if (dataPrint.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                Rpt_LuuChuyenTienTe te = new Rpt_LuuChuyenTienTe();
                try
                {
                    te.SetDataSource(dataPrint);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        te.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        te.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    te.SetParameterValue(1, modGeneral.H_ADDRESS);
                    te.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE);
                    te.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    te.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    te.SetParameterValue(5, modGeneral.Tranlated("B\x00c1O C\x00c1O LƯU CHUYỂN TIỀN TỆ", ""));
                    te.SetParameterValue(6, modGeneral.Tranlated("Đơn vị b\x00e1o c\x00e1o :", ""));
                    te.SetParameterValue(7, modGeneral.Tranlated("Địa chỉ :", ""));
                    te.SetParameterValue(8, modGeneral.Tranlated("(Theo phương ph\x00e1p trực tiếp)(*)", ""));
                    te.SetParameterValue(9, modGeneral.Tranlated("Đơn vị t\x00ednh", "") + "................");
                    if (this.CKXemCaNam.CheckState == CheckState.Unchecked)
                    {
                        te.SetParameterValue(10, modGeneral.Tranlated("Th\x00e1ng", "") + ": " + LVYModule.sRight("00" + this.updThang.Value.ToString(), 2) + "/" + this.updNam.Value.ToString());
                    }
                    else
                    {
                        te.SetParameterValue(10, modGeneral.Tranlated("Năm: ", "") + str);
                    }
                    te.SetParameterValue(11, modGeneral.Tranlated("Chỉ ti\x00eau", ""));
                    te.SetParameterValue(12, modGeneral.Tranlated("M\x00e3 số", ""));
                    te.SetParameterValue(13, modGeneral.Tranlated("Thuyết minh", ""));
                    te.SetParameterValue(14, modGeneral.Tranlated("Năm nay", ""));
                    te.SetParameterValue(15, modGeneral.Tranlated("Năm trước", ""));
                    te.SetParameterValue(0x10, modGeneral.Tranlated("NGƯỜI LẬP BIỂU", ""));
                    te.SetParameterValue(0x11, modGeneral.Tranlated("KẾ TO\x00c1N TRƯỞNG", ""));
                    te.SetParameterValue(0x12, modGeneral.Tranlated("GI\x00c1M ĐỐC", ""));
                    te.SetParameterValue(0x13, modGeneral.Tranlated("(K\x00fd, họ t\x00ean)", ""));
                    te.SetParameterValue(20, modGeneral.Tranlated("(K\x00fd, họ t\x00ean, đ\x00f3ng dấu)", ""));
                    te.SetParameterValue(0x15, modGeneral.Tranlated("lập, ng\x00e0y ....... th\x00e1ng ...... năm ...............", ""));
                    if (modGeneral.H_PHIENBANQUYETDINH == "QD15")
                    {
                        te.SetParameterValue(0x16, "Mẫu số B03-DN");
                        te.SetParameterValue(0x17, "( Ban h\x00e0nh theo QĐ số 15/2006/QĐ-BTC ng\x00e0y 20/03/2006 của Bộ trưởng Bộ T\x00e0i ch\x00ednh )");
                    }
                    else
                    {
                        te.SetParameterValue(0x16, "Mẫu số B03-DNN");
                        te.SetParameterValue(0x17, "( Ban h\x00e0nh theo QĐ số 48/2006/QĐ-BTC ng\x00e0y 14/09/2006 của Bộ trưởng Bộ T\x00e0i ch\x00ednh )");
                    }
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = te;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    if (Form.ActiveForm != null)
                    {
                        Form.ActiveForm.Cursor = Cursors.Default;
                    }
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintLuuChuyenTienGT()
        {
            string str = LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4);
            if (Form.ActiveForm != null)
            {
                Form.ActiveForm.Cursor = Cursors.WaitCursor;
            }
            DataTable dataPrintGT = this.GetDataPrintGT();
            if (dataPrintGT.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                Rpt_LuuChuyenTienTe te = new Rpt_LuuChuyenTienTe();
                try
                {
                    te.SetDataSource(dataPrintGT);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        te.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        te.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    te.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    te.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE);
                    te.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    te.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    te.SetParameterValue(5, modGeneral.Tranlated("B\x00c1O C\x00c1O LƯU CHUYỂN TIỀN TỆ", ""));
                    te.SetParameterValue(6, modGeneral.Tranlated("Đơn vị b\x00e1o c\x00e1o :.............", ""));
                    te.SetParameterValue(7, modGeneral.Tranlated("Địa chỉ :..............", ""));
                    te.SetParameterValue(8, modGeneral.Tranlated("(Theo phương ph\x00e1p trực tiếp)(*)", ""));
                    te.SetParameterValue(9, modGeneral.Tranlated("(Theo phương ph\x00e1p gi\x00e1n tiếp)(*)", ""));
                    te.SetParameterValue(10, modGeneral.Tranlated("Năm : ", "") + str);
                    te.SetParameterValue(11, modGeneral.Tranlated("Chỉ ti\x00eau", ""));
                    te.SetParameterValue(12, modGeneral.Tranlated("M\x00e3 số", ""));
                    te.SetParameterValue(13, modGeneral.Tranlated("Thuyết minh", ""));
                    te.SetParameterValue(14, modGeneral.Tranlated("Năm nay", ""));
                    te.SetParameterValue(15, modGeneral.Tranlated("Năm trước", ""));
                    te.SetParameterValue(0x10, modGeneral.Tranlated("NGƯỜI LẬP BIỂU", ""));
                    te.SetParameterValue(0x11, modGeneral.Tranlated("KẾ TO\x00c1N TRƯỞNG", ""));
                    te.SetParameterValue(0x12, modGeneral.Tranlated("GI\x00c1M ĐỐC", ""));
                    te.SetParameterValue(0x13, modGeneral.Tranlated("(K\x00fd, họ t\x00ean)", ""));
                    te.SetParameterValue(20, modGeneral.Tranlated("(K\x00fd, họ t\x00ean, đ\x00f3ng dấu)", ""));
                    te.SetParameterValue(0x15, modGeneral.Tranlated("lập, ng\x00e0y.......... th\x00e1ng.........năm......", ""));
                    if (modGeneral.H_PHIENBANQUYETDINH == "QD15")
                    {
                        te.SetParameterValue(0x16, "Mẫu số B03-DN");
                        te.SetParameterValue(0x17, "( Ban h\x00e0nh theo QĐ số 15/2006/QĐ-BTC ng\x00e0y 20/03/2006 của Bộ trưởng Bộ T\x00e0i ch\x00ednh )");
                    }
                    else
                    {
                        te.SetParameterValue(0x16, "Mẫu số B03-DNN");
                        te.SetParameterValue(0x17, "( Ban h\x00e0nh theo QĐ số 48/2006/QĐ-BTC ng\x00e0y 14/09/2006 của Bộ trưởng Bộ T\x00e0i ch\x00ednh )");
                    }
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = te;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    if (Form.ActiveForm != null)
                    {
                        Form.ActiveForm.Cursor = Cursors.Default;
                    }
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual CheckBox CKXemCaNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKXemCaNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CKXemCaNam_CheckedChanged);
                if (this._CKXemCaNam != null)
                {
                    this._CKXemCaNam.CheckedChanged -= handler;
                }
                this._CKXemCaNam = value;
                if (this._CKXemCaNam != null)
                {
                    this._CKXemCaNam.CheckedChanged += handler;
                }
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual RadioButton RbGiantiep
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RbGiantiep;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RbGiantiep = value;
            }
        }

        internal virtual RadioButton RbTrucTiep
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RbTrucTiep;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RbTrucTiep = value;
            }
        }

        internal virtual NumericUpDown updNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updNam = value;
            }
        }

        internal virtual NumericUpDown updThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updThang = value;
            }
        }
    }
}

